#include "Teacher.h"
#include <iostream>
using namespace std;

Teacher::Teacher(string name, size_t age, size_t klass) : Person(name, age), klass(klass){
}

string Teacher::Introduce()
{
    string result;
    result += Person::Introduce() + " I am a Teacher. I am teaching ";
    if(this->klass == 0) {
        result += "No Class.";
    } else {
        result += "Class " + to_string(this->klass) + ".";
    }
    return result;
}

